#include "draw.h"

#include <iostream>
using namespace std;

void DP1::draw_a_line(int x1, int y1, int x2, int y2) {
    printf("DP1 draw_a_line x1 %d,y1 %d,x2 %d,y2 %d\n", x1, y1, x2, y2);
}

void DP1::draw_a_circle(int x, int y, int r) {
    printf("DP1 draw_a_circle x %d,y %d,r %d\n", x, y, r);
}

void DP2::drawline(int x1, int x2, int y1, int y2) {
    printf("DP2 drawline x1 %d,y1 %d,x2 %d,y2 %d\n", x1, y1, x2, y2);
}

void DP2::drawcircle(int x, int y, int r) {
    printf("DP2 draw_a_circle x %d,y %d,r %d\n", x, y, r);
}

void V1Drawing::drawLine(int x1, int y1, int x2, int y2) {
    DP1::draw_a_line(x1, y1, x2, y2);
}

void V1Drawing::drawCircle(int x, int y, int r) {
    DP1::draw_a_circle(x, y, r);
}

void V2Drawing::drawLine(int x1, int y1, int x2, int y2) {
    DP2::drawline(x1, x2, y1, y2);
}

void V2Drawing::drawCircle(int x, int y, int r) {
    DP2::drawcircle(x, y, r);
}